<template>
  <form>
    <fieldset>
      <legend>姓名：</legend>
      <input type="text" readonly v-model="userName" style="width: 100%;" />
    </fieldset>
    <fieldset>
      <legend>日期：</legend>
      <input type="date" min="2022-09-01" />
    </fieldset>
  </form>
</template>

<script>
import { ref } from "vue";
export default {
  setup() {
    let userName = ref("");
    userName = "alvin liu";
    return {
      userName
    };
  }
};
</script>